from sklearn.cross_validation import cross_val_score
from sklearn.ensemble import AdaBoostClassifier
from sklearn.datasets import load_svmlight_file
import sys
clf = AdaBoostClassifier(n_estimators=500)
X_train, y_train = load_svmlight_file(sys.argv[1])
X_test, y_test = load_svmlight_file(sys.argv[2])
X_dense=X_train.toarray()
X_test_dense = X_test.toarray()
clf.fit(X_dense,y_train)
print clf.score(X_test_dense, y_test)
 
